package com.bort.system.scheduler;

import com.bort.system.service.TDeskService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class DataRefreshScheduler {

    @Resource
    TDeskService deskService;

    @Scheduled(initialDelay = 10000,fixedDelay = 5000)
    void autoRefresh(){
        deskService.refreshData();
    }
}
